package com.itheima.mybatis_plus.service.impl;

import com.itheima.mybatis_plus.dao.UserDao;
import com.itheima.mybatis_plus.pojo.User;
import com.itheima.mybatis_plus.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author huyoufu <https://github.com/huyoufu>
 * @TIME 2021/10/9 8:48
 * @description
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public List<User> findAll() {
        return userDao.findAll();
    }

    @Override
    public User findById(int id) {
        return userDao.findById(id);
    }
}
